package com.usian.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginMapper extends BaseMapper<User> {

    @Select("select count(*) id,qx from user where  name=#{name} && pwd=#{pwd}")
    User login(@Param("name") String name, @Param("pwd") String pwd);
}
